<!--借款人信息  -->
<div class="detaiTab">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tbody>
					<tr>
						<td width="15%" align="right" class="bg">借款人姓名:</td>
						<td width="35%">${loanUser.userFullName}</td>

						<td width="15%" align="right" class="bg">证件号码:</td>
						<td >
						<input id="document_no" type="hidden" value="${loanUser.documentNo}">
						<#if type=="detail" || approvalStatus=='UNDO'>
							${loanUser.documentNo}
						<#else>
							*********
						<@permission permissionName="loanUserLookInfo">
						<a class="action-ajax-btn fr edit btn_blue" href="/loanrest/show_documentNo?id=${loanUser.id}">查看</a>
						</@permission>
						</#if>
						</td>
					</tr>
					<tr>
						<td align="right" class="bg" width="18%">上一次放款时间:</td>
                       	<td>${lastPaymentTime}</td>
					</tr>
					
				</tbody>
			</table>
		</div>
		
		
 <@js>
	 var document_no = $('#document_no').val();
	 $('#show_age').text(getAge(document_no));
	 //$('#sex').text(getSex(document_no) == 'M'? '男':'女 ');
	 
	 //根据身份证信息获取年龄
	function getSex(UUserCard){
		//获取出生日期
		UUserCard.substring(6, 10) + "-" + UUserCard.substring(10, 12) + "-" + UUserCard.substring(12, 14);
		//获取性别
		if (parseInt(UUserCard.substr(16, 1)) % 2 == 1) {
			//alert("男");
		  	return 'M';
		} else {
			//alert("女");
			return 'F';
		}
	}
	 
	  function getAge(UUserCard){
		var myDate = new Date();
		var month = myDate.getMonth() + 1;
		var day = myDate.getDate();
		var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1;
		if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
			age++;
		}
		//alert(age);
		return age;
    }
    
    function hjdzmap(obj){
		var location = $('#hjdz').html().replace(/[\r\n &nbsp;]/g,'');
		obj.href='http://api.map.baidu.com/geocoder?address='+location+'&output=html&src=';
	}
	
	function jzdzmap(obj){
		var location = $('#jzdz').html().replace(/[\r\n &nbsp;]/g,'');
		obj.href='http://api.map.baidu.com/geocoder?address='+location+'&output=html&src=';
	}
	
</@js>
<@jsRender/>